package com.mxpio.erp.workshop.service.impl;

import com.mxpio.erp.common.workshop.entity.OutsourceOrderItem;
import com.mxpio.erp.common.workshop.service.OutsourceOrderItemService;
import com.mxpioframework.jpa.JpaUtil;
import com.mxpioframework.system.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class OutsourceOrderItemServiceImpl extends BaseServiceImpl<OutsourceOrderItem> implements OutsourceOrderItemService {
    @Override
    @Transactional
    public List<OutsourceOrderItem> listByBizNo(String bizNo) {
        return JpaUtil.linq(OutsourceOrderItem.class).equal("bizNo",bizNo).list();
    }
}
